
package com.compuvest.web;

import java.util.ArrayList;

public class Order implements java.io.Serializable {

    private ArrayList<Tracking> tracks = null;

    private int orderid = 0;
    private String orderNo = "";
    private String orderDate = "";
    private double shippingCost = 0d;
    private double taxCost = 0d;
    private double grandTotal = 0d;
    private String cod = "";
    private String shippingDesc = "";
    private boolean haveHistory = false;

    public Order() {
	tracks = new ArrayList<>(20);
    }

    public int getOrderID()				{ return orderid; }
    public void setOrderID(int orderid)			{ this.orderid = orderid; }

    public String getOrderNo()				{ return orderNo; }
    public void setOrderNo(String orderNo)		{ this.orderNo = orderNo; }

    public String getOrderDate()			{ return orderDate; }
    public void setOrderDate(String orderDate)		{ this.orderDate = orderDate; }

    public double getShippingCost()			{ return shippingCost; }
    public void setShippingCost(double shippingCost)	{ this.shippingCost = shippingCost; }

    public double getTaxCost()				{ return taxCost; }
    public void setTaxCost(double taxCost)		{ this.taxCost = taxCost; }

    public double getGrandTotal()			{ return grandTotal; }
    public void setGrandTotal(double grandTotal)	{ this.grandTotal = grandTotal; }

    public String getCOD()				{ return cod; }
    public void setCOD(String cod)			{ this.cod = cod; }

    public String getShippingDesc()			{ return shippingDesc; }
    public void setShippingDesc(String shippingDesc)	{ this.shippingDesc = shippingDesc; }

    public boolean haveHistory()			{ return haveHistory; }
    public void haveHistory(boolean haveHistory)	{ this.haveHistory = haveHistory; }

    public void addTracking(Tracking tracking) {
	tracks.add(tracking);
    }

    public ArrayList<Tracking> getTracking() {
	return tracks;
    }
}
